import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useKeywordStore = defineStore('homeKeyword', () => {
  const keyword = ref('')
  const getKeyword = computed(() => keyword.value)
  const setKeyword = (value = '') => {
    keyword.value = value
  }
  return { keyword, getKeyword, setKeyword }
})
